#include "StdAfx.h"
#include "Patch.h"
#include "MSVCRTHook.h"
#include "WMPHook.h"

#pragma unmanaged

void* SelectMSVCRTMethod(int num) {
	void* proc = msvcrtHook[num];
	if (!proc) {
		proc = msvcrtSave[num];
	}
	return proc;
}

int WINAPIV wcsicmpHook(LPCWSTR str1, LPCWSTR str2) {
	SyncFuncHook(int, Pwcsicmp, SelectMSVCRTMethod(0), (str1, str2));
}
